package com.ruoyi.order.station.request.instance;

import com.github.s7connector.api.annotation.S7Variable;
import com.github.s7connector.impl.utils.S7Type;
import lombok.Data;

@Data
public class DB5406 {
    //安装结果
    @S7Variable(byteOffset = 0, bitOffset = 0, type = S7Type.WORD)
    public Integer installResult;

    //高度检测结果
    @S7Variable(byteOffset = 2, bitOffset = 0, type = S7Type.WORD)
    public Integer heightCheckResult;

    //安装下限
    @S7Variable(byteOffset = 4, bitOffset = 0, type = S7Type.REAL)
    public float heightCheckLow;

    //安装实际值
    @S7Variable(byteOffset = 8, bitOffset = 0, type = S7Type.REAL)
    public float heightCheckValue;

    //安装上限
    @S7Variable(byteOffset = 12, bitOffset = 0, type = S7Type.REAL)
    public float heightCheckUp;

    //拍照检查 侧板检查1
    @S7Variable(byteOffset = 16, bitOffset = 0, type = S7Type.WORD)
    public Integer sidePanelCheckPos1;

    //拍照检查 侧板检查2
    @S7Variable(byteOffset = 18, bitOffset = 0, type = S7Type.WORD)
    public Integer sidePanelCheckPos2;

    //拍照检查 侧板检查3
    @S7Variable(byteOffset = 20, bitOffset = 0, type = S7Type.WORD)
    public Integer sidePanelCheckPos3;

    //拍照检查  左标签检查
    @S7Variable(byteOffset = 22, bitOffset = 0, type = S7Type.WORD)
    public Integer leftLabelCheck;

    //拍照检查 右标签检查
    @S7Variable(byteOffset = 24, bitOffset = 0, type = S7Type.WORD)
    public Integer rightLabelCheck;

    //Pcb检查
    @S7Variable(byteOffset = 26, bitOffset = 0, type = S7Type.WORD)
    public Integer pcbCheckPos1;

    //侧板打螺丝1
    @S7Variable(byteOffset = 28, bitOffset = 0, type = S7Type.WORD)
    public Integer sidePanelScrewPos1;

    //侧板打螺丝2
    @S7Variable(byteOffset = 30, bitOffset = 0, type = S7Type.WORD)
    public Integer sidePanelScrewPos2;

    //侧板打螺丝3
    @S7Variable(byteOffset = 32, bitOffset = 0, type = S7Type.WORD)
    public Integer sidePanelScrewPos3;

    //盖板打螺丝1
    @S7Variable(byteOffset = 34, bitOffset = 0, type = S7Type.WORD)
    public Integer coverScrewPos1;

    //盖板打螺丝2
    @S7Variable(byteOffset = 36, bitOffset = 0, type = S7Type.WORD)
    public Integer coverScrewPos2;

    //卡扣打螺丝
    @S7Variable(byteOffset = 38, bitOffset = 0, type = S7Type.WORD)
    public Integer buttonScrewPos1;

    //贴标前扫码
    @S7Variable(byteOffset = 40, bitOffset = 0, type = S7Type.WORD)
    public Integer scanProduct;

    //成品
    @S7Variable(byteOffset = 42, bitOffset = 0, type = S7Type.WORD)
    public Integer product;

    //打螺丝结果左
    @S7Variable(byteOffset = 44, bitOffset = 0, type = S7Type.WORD)
    public Integer screwProductLeft;

    //打螺丝结果右
    @S7Variable(byteOffset = 46, bitOffset = 0, type = S7Type.WORD)
    public Integer screwProductRight;
}
